<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>资源管理</title>
<style type="text/css">
<!--
body,td,th {
	font-family: Verdana, Arial, Helvetica, sans-serif;
	font-size: 12px;
}
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
}

#bottom_topic { margin:0px; clear:both; overflow:hidden; width:300px; padding:10px;}
#bottom_topic li#hot_artical {}
#bottom_topic li ul { list-style-type:disc;}
#bottom_topic { float:none; width:auto; line-height:22px; color:#09c; color:#999;}
a { color:#09c; text-decoration:none;}
a:hover { color:#50B500; text-decoration:underline;}
#bottom_topic li p { text-align:right; margin-top:20px;}

#bottom_topic h2{
border-bottom:1px solid #A8B5BD;
color:#51B400;
display:block;
font-size:14px;
height:20px;
overflow:hidden;
padding-left:24px;
}
#bottom_topic h3{font-weight:bold; font-size:12px; padding:3px; margin:0; background-color:#f1f1f1;}
-->
</style>
</head>
<body onmousedown="disableRight()">
<script language="javascript">
function disableRight()
{
	if (event.button==2) return ;
} 

var login_name = "$login_name";
function searchType(type)
{
	if (type == '1')
	{
		document.getElementById("search_cid").style.display="inline"
		document.getElementById("search_rid").style.display="none"
	}
	else if (type == '2')
	{
		document.getElementById("search_cid").style.display="none"
		document.getElementById("search_rid").style.display="inline"
	}
	else
	{
		document.getElementById("search_cid").style.display="none"
		document.getElementById("search_rid").style.display="none"		
	}
}
</script>
<div id="bottom_topic">
<h2><div style="float:right;">（<a href="index.php" target="_blank">点击浏览资源库</a>）</div>欢迎您！ $login_name</h2>
<div style="text-align:center; padding-bottom:5px;">
<!--#
if($type_checked)
{
$check1 = '';
$check2 = 'CHECKED';
$show1 = 'display:none;';
$show2 = 'display:inline;';
}
else
{
$check2 = '';
$check1 = 'CHECKED';
$show2 = 'display:none;';
$show1 = 'display:inline;';
}
#-->
<form method="post" action="search.php" style="margin:0" target="_blank">
	  <select name="method" onchange="searchType(this.value);">
	  <option value="1">{$very[contentName]}</option>
	  <option value="2">文件</option>
	  <option value="3">用户</option>
	  </select>
		<select name="cid" id="search_cid" style="$show1">
		<option value="">所有目录</option>
		$cate_select
		</select>
        <select name="type" id="search_rid" style="$show2">
          <option value="">全部</option>
          <!--# foreach($restype as $rid=>$res){#-->
          <option value="$rid">$res[typename]</option>
          <!--#}#-->
        </select>
        <input name="keyword" type="text" class="searchinput" id="keyword" value="$keyword" size="12"/>
        <input name="s_type" type="hidden" id="s_type" value="simple" />
        <input name="step" type="hidden" id="step" value="2" />
        <input class="submit" type="submit" value="搜索" name="subjectsearch"/>
  </form>
</div>
<h3><div style="float:right"><a href="upload.php" target="_blank">上传{$very[contentName]}</a> | <a href="my.php?action=upload" target="_blank">我的上传</a> | <a href="my.php?action=fav" target="_blank">我的收藏</a></div>
目录</h3>
<div id="child">
<cms type="cate" action="menu" />
<loop>
<span style="padding-right:5px;padding-left:5px;"><a href="{$val[url]}" target="_blank">{$val[cname]}</a></span>|</loop>
</div>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
        <tbody id="new_artical">
          <tr><td colspan="2"><h3>最新上传</h3></td></tr>
          
<!--# $array = $cms::thread("num:15;mid:1;");#-->
<loop>
<tr>
  <td><span><a href="list.php?cid=$val[cid]" target="_blank">[{$catedb[$val[cid]][cname]}]</a></span> <a href="view.php?cid=$val[cid]&tid=$val[tid]" target="_blank">{@substrs($val[title],50)@}</a></td>
  <td>$val[publisher]</td>
</tr>
</loop>
</tbody></table>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
        <tbody id="hot_artical">
          <tr><td colspan="2"><h3>推荐{$very[contentName]}</h3></td></tr>
<!--# $array = $cms::thread("num:15;mid:1;where:digest>0");#-->
<loop>
<tr>
  <td><a href="list.php?cid=$val[cid]" target="_blank">[{$catedb[$val[cid]][cname]}]</a></span> <a href="view.php?cid=$val[cid]&tid=$val[tid]" target="_blank">{@substrs($val[title],50)@}</a></td>
  <td>111</td></tr>
</loop>
</tbody></table>
</div>

</body>
</html>